deeptaste
Joined: 26 Mar 2008 Posts: 1 Location: Kathmandu, Nepal
|
Posted: Wed Mar 26, 2008 7:47 am Post subject: Having Problem due to browser compatibility |
|
|
I am having problem linking pages. It works fine with IE but it doesn't work in Mozilla Firefox browser.
The Code looks like this :
| Code: | '----------------------------------------------------
<A href='<%=CreateOpenLink("page420.asp",false)%>'>Page420</a>
'----------------------------------------------------
which calls asp function:
'-----------------------------------------------
function CreateOpenLink(strPage, blnVal)
if Session("BrowserFail") then
Response.Write strPage
else
Response.Write "javascript:openLink("" & strPage & "", "
if blnVal then
Response.Write "true"
else
Response.Write "false"
end if
Response.Write ");"
end if
end function
'----------------------------------------------------
Then it calls JS function:
'----------------------------------------------------
<script>
function openLink(url, newwindow)
{
newwindow ? open(url) : navigate(url);
}
</script>
'----------------------------------------------------- |
Can anyone help me what to do?
Thanx in advance.
Dips. _________________ Dips |
|