I hophing someone can tell me why the following HTML code will not
work on pIE. Of course if work on the desktop IE, but I cannot figure
out how to get the same results from pIE.

Thanks,
Jason

<html>
<head>
<title>Test</title>
<script language="jscript">
function displayPage(page)
{ if(page=="onload")
{ main.innerHTML="<a href=\"#\"
onClick=\"displayPage('test');\">Click Me</a>"; }

if (page=="test")
{ alert("Hello world");
}
}
</script>
</head>

<body onLoad="displayPage('onload');">
<span id="main"></span>
</body>
</html>

Re: javscript help by Mobile

Mobile
Tue Sep 09 14:04:18 CDT 2003

According to this kb
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q158/4/79.asp&NoWebContent=1
spans are not listed as supported. Have you tried using a DIV tag to do the
same thing?

--
Jidesh Veeramachaneni [MSFT]
Software Design Engineer in Test
Mobile Devices Product Group

This posting is provided "AS IS" with no warranties, and confers no rights.
"kcode" <hagerty@umr.edu> wrote in message
news:f532fe2.0309081340.38e745fb@posting.google.com...
> I hophing someone can tell me why the following HTML code will not
> work on pIE. Of course if work on the desktop IE, but I cannot figure
> out how to get the same results from pIE.
>
> Thanks,
> Jason
>
> <html>
> <head>
> <title>Test</title>
> <script language="jscript">
> function displayPage(page)
> { if(page=="onload")
> { main.innerHTML="<a href=\"#\"
> onClick=\"displayPage('test');\">Click Me</a>"; }
>
> if (page=="test")
> { alert("Hello world");
> }
> }
> </script>
> </head>
>
> <body onLoad="displayPage('onload');">
> <span id="main"></span>
> </body>
> </html>