link created by document.wite() doesnt open

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have Windows XP home dition and latest Internet explorer.
I have program which creates a webpage and uses following code.
var x = "<A href= C:/kr_homepages/xyz.html > All Related links </A>";
document.write(x);

This creates the new webpage with links. But they donot open.
It worked in Windows 98 and Internet explorer 5.0

thanks
 
Hi sk,
Try using the file protocol. So your href property becomes
file://C:\kr_homepages\xyz.html

Regards.
 
Rob ^_^ said:
Hi sk,
Try using the file protocol. So your href property becomes
file://C:\kr_homepages\xyz.html

Regards.

hello,

It doesnot work.
If I write the following in notepad and save as .html and it works fine.
<A href= C:/kr_homepages/xyz.html > All Related links </A>

If I try using this stuff either way using document.write() , it doesnt work.

thanks
 
Back
Top