| View previous topic :: View next topic |
| Author |
Message |
Eraser Grandmaster Cheater
Reputation: 0
Joined: 23 Jul 2008 Posts: 504 Location: http://www.youtube.com/PCtrainers
|
Posted: Thu Jan 29, 2009 8:56 am Post subject: Javascript |
|
|
Hello, i wanted to ask you guys for this thing. I will try to explain it best i can with my shitty English.
So there is a webpage.. and in that webpage there is another webpage in another window... so basically there is a window in the page, that loads a different page than the website itself..
Can you write a code or give me a link for it or something? I know it shouldn't be anything long
I seriuosly tried googling things, but all i came up with was how to create a pop-up with desired size using javascript lol
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Thu Jan 29, 2009 9:46 am Post subject: Re: Javascript |
|
|
| Eraser wrote: | I seriuosly tried googling things, but all i came up with was how to create a pop-up with desired size using javascript lol  |
Isnt that what you want?
Might you show us an example?
Try viewing site source code you can see all the HTML/JS
_________________
|
|
| Back to top |
|
 |
Eraser Grandmaster Cheater
Reputation: 0
Joined: 23 Jul 2008 Posts: 504 Location: http://www.youtube.com/PCtrainers
|
Posted: Thu Jan 29, 2009 10:40 am Post subject: |
|
|
| Yeah.. but i can't find that kind of webpage.. lemme try to find somehow
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Thu Jan 29, 2009 12:21 pm Post subject: iframe/div? |
|
|
Is this what your trying to do?
| Code: | <html>
<head>
<script type="text/javascript">
function navigate(site)
{
document.getElementById("iframe").setAttribute("src",site);
}
</script>
</head>
<body>
<input type="button" value="Press me pliss?!!" onclick="navigate
('http://www.google.se');"/>
<p>
<iframe id="iframe" frameborder="0"></iframe>
</p>
</body>
</html> |
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Thu Jan 29, 2009 12:51 pm Post subject: |
|
|
Maybe you mean iframes?
It's not a completely different window but it is a webpage within another webpage (with scrollbar etc if wanted)
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
|
| Back to top |
|
 |
Eraser Grandmaster Cheater
Reputation: 0
Joined: 23 Jul 2008 Posts: 504 Location: http://www.youtube.com/PCtrainers
|
Posted: Thu Jan 29, 2009 1:02 pm Post subject: |
|
|
I mean something like this guys...
|
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Thu Jan 29, 2009 1:05 pm Post subject: |
|
|
| Naablet wrote: | | tombana wrote: | Maybe you mean iframes?
It's not a completely different window but it is a webpage within another webpage (with scrollbar etc if wanted) |
Yes, and javascript works great if you wanna change the url of a iframe,div,frame or whatever (as long as the user actually have it enabled)  |
Sorry I didn't see that you also posted about the iframe's. And yes, javascript works great for that.
|
|
| Back to top |
|
 |
Eraser Grandmaster Cheater
Reputation: 0
Joined: 23 Jul 2008 Posts: 504 Location: http://www.youtube.com/PCtrainers
|
Posted: Thu Jan 29, 2009 1:11 pm Post subject: |
|
|
I googled iframe and found this which works great:
| Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Example</title>
</head>
<body>
The material below comes from the website http://example.com
<iframe src="http://thps-mods.com" height="200">
Alternative text for browsers that do not understand IFrames.
</iframe>
</body>
</html>
|
Thanks for telling me how it's called!
|
|
| Back to top |
|
 |
|