aryx
December 23rd, 2003, 12:42 PM
I have a link in a html document, it says: <A HREF="#" onclick="addNumber(document.addToGsmList.SubmitGsm, document.configGsmList.gsmNumbers);return false"><img=...>
How can i trigger this link?
webbrowser1.navigate ""
Here is some of the page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="EXPIRES" content="0">
<script language="JavaScript" src="scripts/minside.js"></script>
<script language="JavaScript" src="scripts/smsscriptnew4.js"></script>
<link rel="stylesheet" type="text/css" href="styles/minside.css">
<title>Send SMS (1 av 3)</title>
<script type="text/javascript">
var headingText = "Send SMS";
var menuName = "sendsms";
function loadPage(){
document.getElementById('heading').firstChild.nodeValue = headingText;
// Set active Menu item
document.getElementById(menuName).className = "menyPunktValgt";
count(620);
document.addToGsmList.submitGsm.focus();
}
</script>
</head>
<body onLoad="loadPage()" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Start Copy 1-->
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="1">
<!--Start Menu include -->
<table border="0" class="menyTabell">
<tr>
<td class="menyPunkt" nowrap id="infosms" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.infosms'">
Om SMS
</td>
</tr>
<tr>
<td class="menyPunkt" nowrap id="smsinfo" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.smsinfoframe'">
SMSinfo
</td>
</tr>
<tr>
<td class="menyPunkt" nowrap id="sendsms" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.sendsms'">
Send SMS
</td>
</tr>
<tr>
<td class="menyPunkt" nowrap id="kontakter" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.contactsview'">
Kontakter
</td>
</tr>
<tr>
<td class="menyPunkt" nowrap id="kontaktgrupper" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.contactgroupsview'">
Kontaktgrupper
</td>
</tr>
<tr>
<td class="menyPunkt" nowrap id="nummersok" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.phonedirentries&searchType=advancedSearch'">
Nummersøk
</td>
</tr>
<!-- Start Menu width -->
<tr>
<td nowrap><img id="menybredde" src="images/clearpixel.gif"></td>
</tr>
<!-- End Menu width -->
</table>
<!--End Menu include -->
<td>
<!-- SMS Forms-->
<TABLE border="0" cellspacing="0" cellpadding="0" width="360" align="left" valign="middle">
<tr>
<td colspan="2" valign="bottom"><h5>Mottaker nr:</h5></td>
<td colspan="2" valign="top" align="left"><h5>Mottaker liste:</h5></td>
</tr>
<tr>
<FORM name="addToGsmList" onSubmit="return addNumber(document.addToGsmList.submitGsm, document.configGsmList.gsmNumbers)">
<td valign="top"><input tabindex="1" type="text" name="submitGsm" class="inputText" size="22" maxlength="15"></td>
<td valign="top">
<A HREF="#" onclick="addNumber(document.addToGsmList.submitGsm, document.configGsmList.gsmNumbers);return false"><img tabindex="2" src="images/arrow_right.gif" BORDER="0" alt="legg til mottaker"></a>
</td>
...
</body>
</html>
How can i trigger this link?
webbrowser1.navigate ""
Here is some of the page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="EXPIRES" content="0">
<script language="JavaScript" src="scripts/minside.js"></script>
<script language="JavaScript" src="scripts/smsscriptnew4.js"></script>
<link rel="stylesheet" type="text/css" href="styles/minside.css">
<title>Send SMS (1 av 3)</title>
<script type="text/javascript">
var headingText = "Send SMS";
var menuName = "sendsms";
function loadPage(){
document.getElementById('heading').firstChild.nodeValue = headingText;
// Set active Menu item
document.getElementById(menuName).className = "menyPunktValgt";
count(620);
document.addToGsmList.submitGsm.focus();
}
</script>
</head>
<body onLoad="loadPage()" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Start Copy 1-->
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="1">
<!--Start Menu include -->
<table border="0" class="menyTabell">
<tr>
<td class="menyPunkt" nowrap id="infosms" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.infosms'">
Om SMS
</td>
</tr>
<tr>
<td class="menyPunkt" nowrap id="smsinfo" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.smsinfoframe'">
SMSinfo
</td>
</tr>
<tr>
<td class="menyPunkt" nowrap id="sendsms" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.sendsms'">
Send SMS
</td>
</tr>
<tr>
<td class="menyPunkt" nowrap id="kontakter" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.contactsview'">
Kontakter
</td>
</tr>
<tr>
<td class="menyPunkt" nowrap id="kontaktgrupper" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.contactgroupsview'">
Kontaktgrupper
</td>
</tr>
<tr>
<td class="menyPunkt" nowrap id="nummersok" onMouseOut="this.setAttribute('background','')" onMouseOver="this.setAttribute('background','images/venstremeny/meny_valgt.gif')" onClick="top.main.location.href='control.jsp?command=minside.phonedirentries&searchType=advancedSearch'">
Nummersøk
</td>
</tr>
<!-- Start Menu width -->
<tr>
<td nowrap><img id="menybredde" src="images/clearpixel.gif"></td>
</tr>
<!-- End Menu width -->
</table>
<!--End Menu include -->
<td>
<!-- SMS Forms-->
<TABLE border="0" cellspacing="0" cellpadding="0" width="360" align="left" valign="middle">
<tr>
<td colspan="2" valign="bottom"><h5>Mottaker nr:</h5></td>
<td colspan="2" valign="top" align="left"><h5>Mottaker liste:</h5></td>
</tr>
<tr>
<FORM name="addToGsmList" onSubmit="return addNumber(document.addToGsmList.submitGsm, document.configGsmList.gsmNumbers)">
<td valign="top"><input tabindex="1" type="text" name="submitGsm" class="inputText" size="22" maxlength="15"></td>
<td valign="top">
<A HREF="#" onclick="addNumber(document.addToGsmList.submitGsm, document.configGsmList.gsmNumbers);return false"><img tabindex="2" src="images/arrow_right.gif" BORDER="0" alt="legg til mottaker"></a>
</td>
...
</body>
</html>