PDA

View Full Version : Javascript qustion


haidar06
Sep 7, 2005, 03:17 AM
Hi,

I'll be very pleased if any one can give me a help with this issue:

I am trying to set the Document.domain property inside the javascript tags, the statement will be as follow:

try
{
document.domain="hiscreening.com";
}
catch(e)
{
alert(e);
}

It just keep throwing error and it seems that I can't set the domain property to what I asked it to do, the error message says:

[Object Error]

Please, have you got any suggestion to have to resolve this issue?

Many Thanks in advance

LTheobald
Sep 7, 2005, 04:01 AM
I sounds like the domain property is very fussy and can't be changed too much. Maybe you are trying to set it to an invalid value?

http://www.devguru.com/Technologies/ecmascript/quickref/doc_domain.html