-
Open PDF in new Window
I am trying to get a PDF to open in a window on a button click. I can get it to open in the same window.
From some reading is the only way to do this is with java or can it be done with action script????
-
Try using "_blank" as the target, after the page address.
-
Bald By Choice
What Dyon said:
PHP Code:
myBtn_btn.onRelease = function(){ getURL("http://www.url.com/file.pdf", "_blank"); }
-
Senior Member
Guys "_blank" will open the the PDf in new window where as he wants it to open in the same window.
PHP Code:
myBtn_btn.onRelease = function(){
getURL("http://www.url.com/file.pdf", "_self");
}
also test the movie from IE browser.
-
Bald By Choice
From what I gathered from his post, he CAN get it to open in the same window
I can get it to open in the same window.
so I assumed that when he said
I am trying to get a PDF to open in a window on a button click
that he meant he was trying to get the PDF to open in to a new browser/tab.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|