I've attempted to build a table that appears when the window is a certain size. Now I want to work it to be more responsive by making the table hidden once a window reaches a certain size. I've seen window.onresize(), but I'm not sure how to implement it with the following code.
if (iedom||document.layers){
with (document){
document.write('<table style="display:block" border="0" cellspacing="0" cellpadding="0"><td>')
document.write('</td></table>')
}
}
Aucun commentaire:
Enregistrer un commentaire