There is a webpage, with a button on it, and the scripting for the site, prevents the button from being right-clicked, so there's no way to bookmark the command for the button, or to view the properties of the link within the button, the only thing I've managed to do, is see the URL for the *Image* of the button. I'll provide the page's source info of the button, so anyone who knows more than me, might shed some light .
- Code: Select all
<script language="JavaScript" type="text/javascript">
<!--
function disableSubmit(formObj, disVal) {
var btEnter = document.getElementById('bt_enter');
if (btEnter != null) {
btEnter.disabled = disVal;
}
var btCancel = document.getElementById('bt_cancel');
if (btCancel != null) {
btCancel.disabled = disVal;
}
}
function handleSubmit(inObj) {
var retval = true;
var formObj = inObj.form;
formObj.hiddenSubmit.value = (inObj.name.indexOf('_') >= 0) ? inObj.name.split('_')[1] : 'cancel';
if ((formObj.hiddenSubmit.value == "enter") &&
(false)) {
disableSubmit(formObj, true);
retval = checkSurvey(formObj);
disableSubmit(formObj, false);
}
return retval;
}
//-->
</script>
This code is actually for two buttons, the one with the code "Submit" is a Submit button, and the one with the code "Cancel" is a Cancel button, and what I'm trying to do, is piece together whatever it is in there that executes the "Cancel" button signal, and format it so I can place it in the Address Bar/a Bookmark, and execute it with the push of a button......anyone got any info on how to do this?
Thanks!
EDIT: Actually, I think the first code is what makes it non-right-clickable....I think these are the actual buttons:
- Code: Select all
<tr>
<td align="center">
<input type="image" name="bt_enter" id="bt_enter" src="http://images.eversave.com/Images/optin/submit_button_092106.gif"
alt="Submit" onclick="return handleSubmit(this)">
<input type="image" name="bt_cancel" id="bt_cancel" src="http://images.eversave.com/Images/optin/skip_button_092106.gif"
alt="Skip" onclick="return handleSubmit(this)">
</td>
</tr>
I just cannot figure out how to execute the buttons, as a javascript in the address bar V_V.
Tib