xaverian
10-10-2012, 04:42 AM
Hi ,
I have 'document.pressed ' checking in my javascript code. Problem is it is working fine in Firefox but not in Internet Explorer. I need to make it work in both the browser.
My code is as follows :
function onSubmitForm()
{
if(document.pressed == 'Save')
{
redirect to url1
}
if(document.pressed == 'Run')
{
redirect to url2
}
}
<input type="submit" value = 'Save' name='SaVE_RUn'
onclick = "document.pressed=this.value">
<input type="submit" value = 'Run' name='RUn'
onclick = "document.pressed=this.value">
Please help, Thanks.
I have 'document.pressed ' checking in my javascript code. Problem is it is working fine in Firefox but not in Internet Explorer. I need to make it work in both the browser.
My code is as follows :
function onSubmitForm()
{
if(document.pressed == 'Save')
{
redirect to url1
}
if(document.pressed == 'Run')
{
redirect to url2
}
}
<input type="submit" value = 'Save' name='SaVE_RUn'
onclick = "document.pressed=this.value">
<input type="submit" value = 'Run' name='RUn'
onclick = "document.pressed=this.value">
Please help, Thanks.