This is a discussion on "How to make the scrollbar of pop up window to roll down to the bottom by default" within the JavaScript Forum section. This forum, and the thread "How to make the scrollbar of pop up window to roll down to the bottom by default are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
How to make the scrollbar of pop up window to roll down to the bottom by default
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
How to make the scrollbar of pop up window to roll down to the bottom by default
Hi All,
I have a php page which pops up a window using window.open. I want the scroll bar of the pop up window to scroll down to the bottom by default. How do I go about doing this? Regards, Selvin |
|
|
|
||||
|
Re: How to make the scrollbar of pop up window to roll down to the bottom by default
All you need to do is place an anchor link at the bottom
<a id="bottom"></a> And when you load the page add #bottom to the URL http://www.example.com/index.php#bottom
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: How to make the scrollbar of pop up window to roll down to the bottom by default
Thanks Rakuli for ur reply . I am still unable to make the scroll bar move to the bottom by default.
I will elaborate a bit more of the exact scenario: On click of a button , a window pops up using the following code from php page: echo "<script>window.open('log_show?param1=$val1¶m2 =$val2¶m3=$val3', 'log', 'height=550,width=800')</script>"; val1 ,val2,val3 are passed to the log_show and used there. val3 here is #button as u have mentioned. log_show is a function where I create a text area and write the contents of the text file into the text area using a foreach loop. I have added the anchor tag <a id="button"></a> at the end of the function ( after closing the text area tag). I have also tried it at the end of echo statement. Still I am unable to make the scroll bar move down. Please suggest a solution. Regards, Selvin |
|
||||
|
Re: How to make the scrollbar of pop up window to roll down to the bottom by default
Just change the script line to
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: How to make the scrollbar of pop up window to roll down to the bottom by default
I made the change . still it is not working ..
part of the code in the function called by window.open is as follows: ?> <textarea rows="30" cols="95"><? $val = $_GET['param1']; $fullpath = urldecode($val); $data = file($fullpath); foreach($data as $value) { echo "$value"; } ?> </textarea> <a id="bottom"></a> .. Am I going wrong in placing the anchor place ? |
|
||||
|
Re: How to make the scrollbar of pop up window to roll down to the bottom by default
This may be s stupid idea, but could you do it through htaccess.
I do not know how, but there is a way i am sure of changing the first page loaded, eg. when you type in www.website.com, you are sent to /portfolio instead of /index. What i am saying is, could you do what rakuli said Quote:
I will try and find the way to do this, bear with me
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
||||
|
Re: How to make the scrollbar of pop up window to roll down to the bottom by default
http://www.javascriptkit.com/howto/htaccess6.shtml
Here is how to change the default directory page, try setting it to http://www.example.com/index.php#bottom when you have pasted <a id="bottom"></a> into your site. It is not the most attractive way, but if it works it's simply enough.
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how can I make info in a JS pop up window accessible to non JS users? | Oak | JavaScript Forum | 8 | May 20th, 2008 18:55 |
| How do I make Button Open new window in flash? | bunnyface | Flash & Multimedia Forum | 4 | Feb 27th, 2008 21:41 |
| Image roll over pop up | acrikey | Web Page Design | 12 | May 2nd, 2007 15:31 |
| How to make pop-up window fit client's screen | maurice | JavaScript Forum | 3 | Mar 15th, 2005 17:54 |
| need help with Roll over stylesheet. | comaiwat | Web Page Design | 8 | Sep 21st, 2004 02:34 |