Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Javascript qustion (https://www.askmehelpdesk.com/showthread.php?t=12485)

  • Sep 7, 2005, 03:17 AM
    haidar06
    Javascript qustion
    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
  • Sep 7, 2005, 04:01 AM
    LTheobald
    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/...oc_domain.html

  • All times are GMT -7. The time now is 02:48 PM.