javascript - right scroll bar of a modal is not coming at the top positon -


i using modal scroll bar @ right coming @ end of message content.but want scroll bar @ top position of message content shows message top.

    htp.p('<html>');     htp.p('<head>');     web_template.include_css_stylesheets;     htp.p('</head>');     htp.p('<body>');        htp.p('<table style="margin:0px;padding:0px;width=103%;" cellpadding=0 cellspacing=0>');     htp.p('<tr><td>      <div id="scrolltable" style="width:100%; height:470px; overflow:auto;">     <table cellspacing="0" cellpadding="0" >     <tr>     <td>');      htp.p('<title>'||message_rec.title||'</title>');     htp.p('<b><u>'||message_rec.title||'</u></b>');     htp.p('<p>');     htp.p(replace(message_rec.message_txt,chr(10),'<br>'));     htp.p('</td><tr>     </table>     </div>     </td><tr>     </table>     <table  style="width:100%;">');     htp.p('<tr class="crud"><td align="right">');     htp.p('<form>');     htp.p('<button onclick="self.close();">close</button>&nbsp;&nbsp;');     htp.p('</form>');             htp.p('</td></tr>');     htp.p('</table>');     htp.p('</body>');     htp.p('</html>');     htp.p('<script type="text/javascript">     document.getelementbyid("scrolltable").scrolltop()=0;     document.getelementbyid("scrolltable").scrollright()=0;     </script'); 


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -