SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post how to relocation a page to another tag of browser?

    Recently I learned to write a website.I Wanted to relocation one of the pages from my website to my company's page .But there was an error that confused me.So I search for my savior here .
    There are my codes
    window.location.href="http://www.ilwrapping.com"
    but it covers the current page. I want to how to correct it?
    can you tell me?

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,890
    Mentioned
    211 Post(s)
    Tagged
    12 Thread(s)
    Hi there,

    Welcome to the forums

    Quote Originally Posted by candy001 View Post
    window.location.href="http://www.ilwrapping.com" but it covers the current page.
    Yes, window.location.href is a property that will tell you the current URL location of the browser. Setting the property to something different will redirect the page.

    So what is it exactly that you are trying to achieve?
    Could you be a little more specific?

  3. #3
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    actually the window. location. href="<snip>", so the above is wrong
    Last edited by Pullo; Jul 4, 2013 at 23:45. Reason: Removed unnecessary link

  4. #4
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,890
    Mentioned
    211 Post(s)
    Tagged
    12 Thread(s)
    Ok, so what is your actual problem?

  5. #5
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    I did see it, but I still can't find a method to build my website <snip> I hope to do it better in future.
    Last edited by Pullo; Jul 4, 2013 at 23:46. Reason: Removed unnecessary link

  6. #6
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,890
    Mentioned
    211 Post(s)
    Tagged
    12 Thread(s)
    I'm afraid you've failed to specify what your issue is and unless you do that, there's no way we can help you.
    Thread closed.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •