javascript - add scrollbars to alert function

How do I add scrollbars to the following:

alert('There was a problem with the response text\n\n' + respText.replace(/<br>/g, '\n'));

Thanks. :)
LVL 9
Evan CutlerVolunteer Chief Information OfficerAsked:
Who is Participating?
 
Loganathan NatarajanConnect With a Mentor LAMP DeveloperCommented:
if the include page is dynamic.. try like this,

showPopWin('your_url_here.php?str=dynamic text', width, height, callback_function);

then process it in "your_url_here.php" ..

0
 
Loganathan NatarajanLAMP DeveloperCommented:
better you call some custom alert pages with scroll bars ..

http://slayeroffice.com/code/custom_alert/
http://www.subimage.com/dhtml/subModal/
0
 
Loganathan NatarajanLAMP DeveloperCommented:
In "alert()" you may not do.,
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Evan CutlerVolunteer Chief Information OfficerAuthor Commented:
Using the subimage one.

showPopWin('your_url_here.html', width, height, callback_function);

How do I replace the 'your_url...." with actual text?
Thanks
0
 
Loganathan NatarajanLAMP DeveloperCommented:
with "showPopWin('your_url_here.html', width, height, callback_function);" ... may be you can pass only the URL .. to pass the dynamic text ... may be you can try the first one.,
0
 
Evan CutlerVolunteer Chief Information OfficerAuthor Commented:
thanks.
0
All Courses

From novice to tech pro — start learning today.