How Can I Do This Pop Up Thingy?

Discussion in 'HTML & Website Design' started by touchAshley, Jul 1, 2008.

  1. #1
    I'm starting a blog about a famous guitarist. I want to post guitar tabs of his songs on there too. Here's an example of a guitar tab

    Now, the guitar tabs can sometimes get pretty wide, which will mess up and get all out of wack in my blog posts because it wouldn't be wide enough to hold the tab properly. What I want to do create a pop up window for the tab on a seperate page. So I can be like "Click here to view the tab". So is there any kind of javascript or something I can do for this so it doesn't open a new html page? I just want it to pop up on the same page. Perhaps a wordpress plugin?

    If not, I guess I could just create blank page for the guitar tab and make sure the search engines don't index it. Because I want visitors to go to the blog post. Not the direct tab.

    Thanks :)
     
    touchAshley, Jul 1, 2008 IP
  2. DomainCo.US

    DomainCo.US Well-Known Member

    Messages:
    2,124
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    100
    #2
    you can use this javascript

    window.open('url to open','window name','attribute1,attribute2')
     
    DomainCo.US, Jul 1, 2008 IP
  3. transient

    transient Member

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    you can also just use target="_blank" in your a tag
     
    transient, Jul 1, 2008 IP
  4. touchAshley

    touchAshley Active Member

    Messages:
    1,762
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    90
    #4
    Yes I know. I want a full page popup in the same window with the tab though.

    I'll try that DomainCo :)
     
    touchAshley, Jul 1, 2008 IP