Jump to content

Javascript Activate an javascript at a website


Hing
 Share

Recommended Posts

Dear forum users,

I have a website whit some javascript & html code etc.

Want to click the Btn for a javascript link.

Only problem is it will not work! /.\

The html code is(3 Btns):

<td><img src='images/menu_title_function.jpg' align=center></td>
    </tr>
    <tr>
        <td>
            <table width=175 cellspacing=0 cellpadding=0>
                        <tr height='26'>
                <td style='cursor:hand; padding-left:20px' class='size15'
                    onmouseover="this.style.backgroundColor='#E0F6F1';"
                    onmouseout="this.style.backgroundColor='';"
                    onclick="location.href='function_home.php'" >‧ News
                </td>
            </tr>           <tr height='26'>
                <td style='cursor:hand; padding-left:20px' class='size15'
                    onmouseover="this.style.backgroundColor='#E0F6F1';"
                    onmouseout="this.style.backgroundColor='';"
                    onclick="location.href='function_downloads.php'" >‧ Download
                </td>
            </tr>           <tr height='26'>
                <td style='cursor:hand; padding-left:20px' class='size15'
                    onmouseover="this.style.backgroundColor='#E0F6F1';"
                    onmouseout="this.style.backgroundColor='';"
                    onclick="location.href='function_message_report.php'" >‧ Message Report
                </td>
            </tr>

Hope you can help me to click that buttons, so the javascript will run.

Link to comment
Share on other sites

Are these three is your modification?

onclick="location.href='function_home.php'"
onclick="location.href='function_downloads.php'"
onclick="location.href='function_message_report.php'"

Anyway, what they do is to navigate the browser to these pages. You can accomplish that using _IENavigate() with either the page as the $s_url parameter or as this string:

Local $sNav = "javascript: location.href='function_home.php'"
_IENavigate($oIE, $sNav)

I might be wrong.

Edit: Nevermind, just ignore my first mumbling.

Edited by Authenticity
Link to comment
Share on other sites

Are these three is your modification?

onclick="location.href='function_home.php'"
onclick="location.href='function_downloads.php'"
onclick="location.href='function_message_report.php'"

Anyway, what they do is to navigate the browser to these pages. You can accomplish that using _IENavigate() with either the page as the $s_url parameter or as this string:

Local $sNav = "javascript: location.href='function_home.php'"
_IENavigate($oIE, $sNav)

I might be wrong.

Edit: Nevermind, just ignore my first mumbling.

I Got it! Thanks a lot!!

$oIE = _IEAttach("title")
_IENavigate ($oIE, "http://www.***/function_home.php")
Sleep(2000)
$oIE = _IEAttach("title")
_IENavigate ($oIE, "http://www.***/function_downloads.php")
Sleep(2000)
$oIE = _IEAttach("title")
_IENavigate ($oIE, "http://www.***/function_message_report.php")
Sleep(2000)

So you may alright!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...